#include "asm/delay.h"
#include "pm_device.h"
#include "pm_chip_hal.h"


struct pm_profile g_pm_core_profile[6] = {
    {
        .freq = 594 * _1M,  // 594: default freq
        .volt = 940000,  // 940000: default volt
    },

};


/*1: support,  0: not support */
int hal_core_get_dvfs_policy(void)
{
    return (int)HI_CPU_DVFS_POLICY_CLOSE;
}

void hal_core_set_freq_clk(unsigned int freq)
{
    freq = freq / _1M;
    return;
}

int hal_core_get_freq_clk(void)
{
    int freq;
    freq = 594 * _1M;  // 594: default freq
    /**-----the following is hi3556v100 'reg config --------*/
    return freq;
}


